import java.util.*;

import java.text.SimpleDateFormat;

def today()
{
    String str = "";
    SimpleDateFormat sdf = new SimpleDateFormat("YYYYMMddHHmmss");
    Calendar lastDate = Calendar.getInstance();
    str = sdf.format(lastDate.getTime());
    return str;
}

println today()

println new Date().format("YYYYMMddHHmmss")
